package com.hrzyit.base.injection.module

import android.content.Context
import com.hrzyit.base.common.BaseApplication
import dagger.Module
import dagger.Provides
import javax.inject.Singleton

/**
 * App 级别 Module
 * @author YangWei
 * @date 2019/3/10
 */
@Module
class AppModule(private val context:BaseApplication) {

    // 单例，创建全局上下文
    @Singleton
    @Provides
    fun provideContext():Context {
        return this.context
    }
}